package spe.ui.editor.command;

import org.eclipse.draw2d.Label;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.tools.CellEditorLocator;
import org.eclipse.gef.tools.DirectEditManager;

public class ElementDirectEditManager extends DirectEditManager 
{
	private Label label;
	
	public ElementDirectEditManager(GraphicalEditPart part, Class editorType, CellEditorLocator loc, Label lb)
	{
		super(part, editorType, loc);
		label = lb;
	}

	@Override
	protected void initCellEditor()
	{
		String iniLabelText = label.getText();
		getCellEditor().setValue(iniLabelText);
	}
}
